'''
1、网址：https://pvp.qq.com/web201605/herolist.shtml
'''

# 导入提供的工具类
# import urllib.request
import requests
import os
import json

# 调用工具类中的获取英雄信息的方法获取英雄数据
# response = urllib.request.urlopen("http://pvp.qq.com/web201605/js/herolist.json")
# hero_json = json.loads(response.read())
response = requests.get("http://pvp.qq.com/web201605/js/herolist.json")
hero_json = json.loads(response.text)
print(hero_json)

